<?php /* Smarty version 2.6.26, created on 2015-08-21 10:45:23
         compiled from ./../List/index.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<link rel="stylesheet" href="Public/Home/Css/list.css" />
	
<!-- top 结束-->

	<div id='location'>
		<a href="index.php?c=List">全部分类</a>
			<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['fatherCate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
				<!--如果是最后一条是没有a连接的-->
				<?php if ($this->_sections['n']['last']): ?>
					&gt;&nbsp;<?php echo $this->_tpl_vars['fatherCate'][$this->_sections['n']['index']]['title']; ?>
&nbsp;&nbsp;
				<?php else: ?>
					&gt;&nbsp;<a href="./index.php?c=List&cid=<?php echo $this->_tpl_vars['fatherCate'][$this->_sections['n']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['fatherCate'][$this->_sections['n']['index']]['title']; ?>
</a>&nbsp;&nbsp;
				<?php endif; ?>
			<?php endfor; endif; ?>
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
					<?php $_from = $this->_tpl_vars['sonCate']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
					<li>
						<a href="index.php?c=List&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
"><?php echo $this->_tpl_vars['v']['title']; ?>
</a>
					</li>
					<?php endforeach; endif; unset($_from); ?>
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li <?php if ($_GET['w'] == 0): ?>class='on'<?php endif; ?>>
						<a href="./index.php?c=List&cid=<?php echo $_GET['cid']; ?>
&w=0">待解决问题</a>
					</li>
					<li  <?php if ($_GET['w'] == 1): ?>class='on'<?php endif; ?>>
						<a href="./index.php?c=List&cid=<?php echo $_GET['cid']; ?>
&w=1">已解决</a>
					</li>
					<li >
						<a href="./index.php?c=List&cid=<?php echo $_GET['cid']; ?>
&w=2">高悬赏</a>
					</li>
					<li >
						<a href="./index.php?c=List&cid=<?php echo $_GET['cid']; ?>
&w=3">零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>

						<tr>
							<td class='t1 cons'>
								<a href="">
									<b>20</b>后盾顶尖PHP培训</a>&nbsp;&nbsp;[培训]
							</td>
							<td>20</td>
							<td>1900.1.1</td>
						</tr>

						<tr>
							<td class='t1 cons'>
								<a href="">
									<b>20</b>后盾顶尖PHP培训</a>&nbsp;&nbsp;[培训]
							</td>
							<td>20</td>
							<td>1900.1.1</td>
						</tr>
						<tr>
							<td class='t1 cons'>
								<a href="">
									<b>20</b>后盾顶尖PHP培训</a>&nbsp;&nbsp;[培训]
							</td>
							<td>20</td>
							<td>1900.1.1</td>
						</tr>
						<tr>
							<td class='t1 cons'>
								<a href="">
									<b>20</b>后盾顶尖PHP培训</a>&nbsp;&nbsp;[培训]
							</td>
							<td>20</td>
							<td>1900.1.1</td>
						</tr>

				
				</table>

			</div>
		</div>

			<!-- 右侧 -->
		<div id='right'>
						 <?php if ($_SESSION['uname'] && $_SESSION['uid']): ?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href=""><img src="" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="">
						<b><?php echo $_SESSION['uname']; ?>
</b>
					</a>
					<a href="">
						<i class='level lv<?php echo $this->_tpl_vars['endArr']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['lvArr'][$this->_tpl_vars['lv_id']]; ?>
'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><?php echo $_SESSION['upoint']; ?>
<b class='point'></b></a></dd>
				<dd>经验值：<?php echo $_SESSION['uexp']; ?>
</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href=""><?php echo $this->_tpl_vars['endArr']['ans']; ?>
</a></td>
					<td><a href=""><?php echo $this->_tpl_vars['endArr']['accept']; ?>
</a></td>
					<td class='last'><a href=""><?php echo $this->_tpl_vars['endArr']['ask']; ?>
</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div> 
				<?php else: ?>
		 <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div>  
		<?php endif; ?>
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>本日回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="" class='star-face'>
						<img src="" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['TodayAns']['0']['username']; ?>
</a></li>
						<i class='level lv<?php echo $this->_tpl_vars['TodayAns']['0']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['TodayAns']['0']['lv']; ?>
'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span><?php echo $this->_tpl_vars['TodayAns']['0']['answer']; ?>
</span></li>
					<li>采纳率：<span><?php echo $this->_tpl_vars['TodayAns']['0']['accept']; ?>
</span></li>
				</ul>
			</div>
		<span class='star-name'>历史回答问题最多的人</span>

		<div class='star-info'>
			<div>
				<a href="" class='star-face'>
					<img src="" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href=""><?php echo $this->_tpl_vars['historyArr']['username']; ?>
</a></li>
					<i class='level lv<?php echo $this->_tpl_vars['historyArr']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['historyArr']['lv']; ?>
'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span><?php echo $this->_tpl_vars['historyArr']['answer']; ?>
</span></li>
				<li>采纳率：<span><?php echo $this->_tpl_vars['historyArr']['accept_l']; ?>
</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'> 
				 <?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['helpArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
				<li>
					<a href=""><i class='rank r1'></i><?php echo $this->_tpl_vars['helpArr'][$this->_sections['n']['index']]['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['helpArr'][$this->_sections['n']['index']]['answer']; ?>
</span>
				</li> 
				<?php endfor; endif; ?>
				
			</ul>
		</div>
	</div>
</div>
<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="Public/Home/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->